const  fs =require('fs');

const readStream = fs.createReadStream("04nodejs fs模块 demo/t.txt");

let  str="";
let conunt = 0;
readStream.on("data",function (data) {
    str+=data;
    conunt++;

});

readStream.on("end",function (chunk) {
    console.log(str);
    console.log(conunt);
});
